
#pragma once

#include "Input.h"

#include "DirectInputDevice.h"

class CDIMouse:public CDirectInputDevice
{
public:

	CDIMouse();
	~CDIMouse();
	
	virtual bool Init( HWND hWnd );
	virtual bool Update();

	bool IsButtonDown( int btn );
	bool IsButtonUp( int btn );
	bool IsButtonPressed( int btn );

	bool IsLeftButtonDown();
	bool IsLeftButtonUp();
	bool IsLeftButtonPressed();

	bool IsRightButtonDown();
	bool IsRightButtonUp();
	bool IsRightButtonPressed();

	bool IsMiddleButtonDown();
	bool IsMiddleButtonUp();
	bool IsMiddleButtonPressed();

	LONG GetMouseMoveX();
	LONG GetMouseMoveY();
	LONG GetMouseMoveZ();

	POINT GetPostion();

	DIMOUSESTATE2 m_State;
	DIMOUSESTATE2 m_StateLast;

	POINT m_PositionLast;
	POINT m_Position;
};